﻿namespace Admin.NET.Core.Btms;


/// <summary>
/// 公用ViewModel,前端给表单设置一个固定的Code, 然后把完整的ViewModel保存起来
/// </summary>
[SugarTable(null, "公用ViewModel")]
public class BasViewModel : EntityBaseMk
{
    [Required]
    [SugarColumn(ColumnDescription = "代码", Length = 256)]
    public string Code { get; set; } = "";

    [Required]
    [SugarColumn(ColumnDescription = "分类", Length = 256)]
    public string Category { get; set; } = "";

    [Required]
    [SugarColumn(ColumnDescription = "视图模型,JSON", Length = -1)]
    public JObject Model { get; set; }
}